package com.ktgj.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 部门对象 department
 * 
 * @author ruoyi
 * @date 2021-07-27 */
public class Department implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 部门ID */
    private Long deptId;

    /** 父部门 */
    @Excel(name = "父部门")
    private Long parentDeptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 部门职能描述 */
    @Excel(name = "部门职能描述")
    private String deptDesc;

    /** 排序 */
    @Excel(name = "排序")
    private Long deptSort;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public Long getDeptSort() {
        return deptSort;
    }

    public void setDeptSort(Long deptSort) {
        this.deptSort = deptSort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    private List<Department> departmentList = new ArrayList<>();

    public List<Department> getDepartmentList() {
        return departmentList;
    }

    public void setDepartmentList(List<Department> departmentList) {
        this.departmentList = departmentList;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setParentDeptId(Long parentDeptId)
    {
        this.parentDeptId = parentDeptId;
    }

    public Long getParentDeptId() 
    {
        return parentDeptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setDeptDesc(String deptDesc) 
    {
        this.deptDesc = deptDesc;
    }

    public String getDeptDesc() 
    {
        return deptDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deptId", getDeptId())
            .append("parentDeptId", getParentDeptId())
            .append("deptName", getDeptName())
            .append("deptDesc", getDeptDesc())
            .toString();
    }
}
